import pytest,requests

@pytest.fixture(scope='function')
def login_token():
    url='http://10.59.9.18/small/user/v1/login'
    data={
        'phone':'13811033965',
        'pwd':'123456Aa'
    }
    r=requests.post(url=url,json=data)
    r_json=r.json()
    print(r_json['result']['sessionId'])
    print(r_json['result']['userId'])
    # print(r_json)
    yield r_json['result']['sessionId'],r_json['result']['userId']


